﻿@using AwesomeSlider.Extensions;
@using AwesomeSlider.Models;

@{
    Html.AddTitleParts(T("Manage Slider").ToString());

    Script.Require("SliderContextmenu");
    Style.Require("SliderAdmin"); 
}


<div class="manage">    
    <a href="@Url.SliderItemAdd((SliderPart)Model.ContentItem.Get(typeof(SliderPart)))" 
        class="add button primaryAction">
        @T("Add Items")
    </a>
    <a href="@Url.SliderEdit((SliderPart)Model.ContentItem.Get(typeof(SliderPart)))" 
        class="add button">
        @T("Slider properties")
    </a>
</div>
@Display(Model)
<div class="manage">    
    <a href="@Url.SliderSummary()" 
        class="add button">
        @T("Back to sliders")
    </a>
</div>
@using (Script.Foot())
{
    <script type="text/javascript">
        $(function () {
            $('.remove-photo').contextmenu('.remove-photo-panel');
        });
    </script>
}